<?php

namespace app\api\validate;

use think\Validate;

class  PurchaseValidate extends Validate
{
    protected $rule = [
        'supplier' => 'require',
        'warehouse' => 'require',
        'set_account' => 'require',
        'payment' => 'require',
        'create_time' => 'require'
    ];

    protected $msg = [
        'supplier.require' => '请选择供应商',
        'warehouse.require' => '请选择仓库',
        'set_account.require' => '请选择结算账户',
        'payment.require' => '请输入实付金额',
        'create_time.require' => '请选择采购日期'
    ];
}